package users.christy.beans;

public class Config {
	private final String dateFormat;
	private final DatabaseParameters dbParams;
	private int maxCacheSize;
	private String javaHome;

	public Config(String dateFormat, DatabaseParameters dbParams) {
		this.dateFormat = dateFormat;
		this.dbParams = dbParams;
	}
	
	public String getDateFormat() {
		return dateFormat;
	}

	public DatabaseParameters getDbParams() {
		return dbParams;
	}

	public int getMaxCacheSize() {
		return maxCacheSize;
	}

	public void setMaxCacheSize(int maxCacheSize) {
		this.maxCacheSize = maxCacheSize;
	}
	
	public String getJavaHome() {
		return javaHome;
	}

	public void setJavaHome(String javaHome) {
		this.javaHome = javaHome;
	}

	public void init() {
		System.out.println("In Config.init().");
	}
	
	public void destroy() {
		System.out.println("In Config.destroy().");
	}
}
